﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace blackhouse.WebNemo.Web.Controls {
	public class StyleInclude : Control {

		public string FileOnlyName { get; set; }

		protected override void Render(HtmlTextWriter writer) {
//    <link type="text/css" href="<%=NemoUrlUtils.GetStartUrl() %>Styles/records.css" rel="stylesheet" />

			writer.AddAttribute(HtmlTextWriterAttribute.Type, "text/css");
			writer.AddAttribute(HtmlTextWriterAttribute.Href, "/Nemo/Styles/" + FileOnlyName + ".css");
			writer.AddAttribute(HtmlTextWriterAttribute.Rel, "stylesheet");
			writer.RenderBeginTag(HtmlTextWriterTag.Link);
			writer.RenderEndTag();
		}

	}
}